package com.qb.main.ui.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.qb.common.bean.JokeLxh
import com.qb.main.R

class JokeLxhAdapter:BaseQuickAdapter<JokeLxh,BaseViewHolder>(R.layout.item_lxh) {
    override fun convert(holder: BaseViewHolder, item: JokeLxh) {
        holder.setText(R.id.tv_title,item.title)
            .setText(R.id.tv_from,item.from)
            .setText(R.id.tv_joke_content,item.jokeContent)
            .setText(R.id.tv_good,"${item.good}")
            .setText(R.id.tv_bad,"${item.bad}")
    }
}